﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master.Master" AutoEventWireup="true" CodeBehind="register.aspx.cs" Inherits="Hotel2.register" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" type="text/css" href="css/gold.css" media="screen">
    <link rel="stylesheet" type="text/css" href="css/login.css" media="screen"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div class="content">
		<div class="login">
			<div class="registerContent">              
                <div id="registrationBox" class="box">
                <h1>Register</h1>
				Email: <br/>
                <asp:textbox ID="txtEmail" runat="server" CssClass="textBox">
                </asp:textbox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtEmail" ErrorMessage="*"></asp:RequiredFieldValidator>  
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtEmail" ErrorMessage="Please enter a valid email address!" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                <br/>


                FirstName:<br/>
                <asp:textbox ID="txtFirstName" runat="server" CssClass="textBox">
                </asp:textbox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtFirstName" ErrorMessage="*"></asp:RequiredFieldValidator>  
                <br/><br/>


                Surname:<br/>
                <asp:textbox ID="txtSurname" runat="server" CssClass="textBox">
                </asp:textbox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtSurname" ErrorMessage="*"></asp:RequiredFieldValidator>  
                <br/>

                Password:<br/>
                <asp:textbox ID="txtPassword" runat="server" TextMode="password" CssClass="textBox">
                </asp:textbox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtPassword" ErrorMessage="*"></asp:RequiredFieldValidator>  
                <br/>
                
                Re-Type Password:<br/>
                <asp:textbox ID="txPasswordConfim" runat="server" TextMode="password" CssClass="textBox">
                </asp:textbox><br/>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                        ControlToCompare="txtPassword" ControlToValidate="txPasswordConfim" 
                        ErrorMessage="Passwords must match!"></asp:CompareValidator>
                <br/>

                Phone:<br/>
                <asp:textbox ID="txtPhone" runat="server" CssClass="textBox">
                </asp:textbox>

                <br />

                Date of Birth:<br/>
                <asp:textbox ID="txtDob" runat="server" CssClass="textBox">
                </asp:textbox>
                <asp:RegularExpressionValidator ID="dateValRegex" runat="server" ControlToValidate="txtDob" ErrorMessage="Please Enter a valid date in the format (mm/dd/yyyy)" ValidationExpression="^(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d$"></asp:RegularExpressionValidator>
                <br/>


                    <br />
                    Country:<br />
                    <asp:DropDownList ID="CountryDropDown" runat="server" Height="27px" 
                        Width="176px">
                    </asp:DropDownList>
                    <br />


                <br/>
                    <asp:Button ID="Submit" runat="server" Text="Submit" />
                    <br />
                </div>
			</div>
		</div>
	</div>
</asp:Content>
